package com.jmyd.commons.constants;

/**
 * Redis key常量
 *
 * @author samphin
 * @date 2019-10-16 16:11:34
 */
public final class RedisConstants {
    private RedisConstants() {
    }

    /**
     * 手机验证码 redis key
     */
    public static final String PHONE_CODE_KEY = "phone_code_key:%s";
    /**
     * 访问token缓存key
     */
    public static final String PREFIX_API_ACCESS_TOKEN = "store_api_access_token:%s";
    /**
     * shiro token redis key store api
     */
    public static final String PREFIX_API_REFRESH_TOKEN = "store_api_refresh_token:%s";

    /**
     * 用户信息Key
     */
    public static final String PREFIX_USER_INFO = "user_info:%s";
    /**
     * 微信商户订单号key
     */
    public static final String WE_CHAT_OUT_TRADE_NO = "wechat_out_trade_no:%s";

    /**
     * 支付宝商户订单号key
     */
    public static final String ALI_PAY_OUT_TRADE_NO = "alipay_out_trade_no:%s";

    /**
     * 微信授权登录access_token缓存key
     */
    public static final String WE_CHAT_ACCESS_TOKEN = "we_chat_access_token:%s";

    /**
     * 游客带看ID
     */
    public static final String COUPON_CODES = "coupon_codes:%s";

    /**
     * redis默认缓存时间30分钟
     */
    public static final Integer REDIS_DEFAULT_EXPIRE_TIME = 1800;
}
